<?phpclass SystemCategoryDataService extends SystemCategoryDSBase{	/**	 * 	 * Get list category by user and type of category	 * @param string $userId	 * @param string $type	 */	public function getByUserAndType($userId, $type)	{		if(empty($userId) || empty($type))		{			return NULL;		}				// list page		$listCategory = array(			CATEGORY_BLOG,			CATEGORY_NEWS,			CATEGORY_PHOTO,			CATEGORY_PRODUCT		);				if(!in_array($type, $listCategory))		{			return NULL;		}				$arrElement = array();		$arrElement['ownerId'] = $userId;		$arrElement['type'] = $type;				return $this->getItems($arrElement);	}	}